<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        let str = "file:ddddd";
        let str2 = "http://www.baidu.com";
        console.log(str.startsWith('http'));
        consoloe.log(str2.startsWith('http'));


        let str3 = "user.do";
        let str4 = "user.action";
        console.log(str3.endsWith('do'));
        console.log(str4.endsWith('do'));
    </script>
</head>
<body>
    
</body>
</html>